Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#7934] Fix missing ActiveStorage attachment uploads #7953

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

gbp
Copy link
Member

@gbp gbp commented Oct 12, 2023

Relevant issue(s)

Fixes #7934

What does this do?

Fix missing ActiveStorage attachment uploads

Why was this needed?

The after commit hooks don't seem to be firing in some cases resulting in attachments not being uploaded after the attachment and its file blob record being saved.

The after commit hooks don't seem to be firing in some cases resulting
in attachments not being uploaded after the attachment and its file blob
record being saved.

This change ensures the callback hook is fired if the `ActiveStorage`
service doesn't have the blob.

Fixes #7934
@gbp gbp force-pushed the 7934-fix-unsaved-attachments branch from 85823c7 to 342c539 Compare October 13, 2023 12:09
@gbp gbp merged commit 94e1001 into develop Oct 13, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Attachments not stored in ActiveStorage
1 participant